package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.entity.warehouse.StackerTask;
import com.sansan.qiangji.mapper.warehouse.StackerTaskMapper;
import com.sansan.qiangji.service.inter.warehouse.StackerTaskService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StackerTaskServiceImpl implements StackerTaskService {
    private StackerTaskMapper stackerTaskMapper;

    @Resource
    public void setStackerTaskMapper(StackerTaskMapper stackerTaskMapper){
        this.stackerTaskMapper = stackerTaskMapper;
    }

    @Override
    public int addStackerTask(StackerTask stackerTask) {
        return stackerTaskMapper.addStackerTask(stackerTask);
    }

    @Override
    public int updateStackerTask(StackerTask stackerTask) {
        return stackerTaskMapper.updateStackerTask(stackerTask);
    }

    @Override
    public StackerTask findByStackerTaskCode(String stackerTaskCode) {
        return stackerTaskMapper.findByStackerTaskCode(stackerTaskCode);
    }
}
